<?php /* Smarty version Smarty-3.1.14, created on 2014-02-22 22:05:25
         compiled from "admin\tpl\user\addrole.htm" */ ?>
<?php /*%%SmartyHeaderCode:29105308aea5db43d0-97033088%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f6cd991f63104a199b5b42c955f1b1675cb79325' => 
    array (
      0 => 'admin\\tpl\\user\\addrole.htm',
      1 => 1383120833,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '29105308aea5db43d0-97033088',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'web_host' => 0,
    'result' => 0,
    'resList' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5308aea5e3d3f9_31095383',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5308aea5e3d3f9_31095383')) {function content_5308aea5e3d3f9_31095383($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<LINK href="<?php echo $_smarty_tpl->tpl_vars['web_host']->value;?>
/common/admin/css/admin.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['web_host']->value;?>
/common/libs/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(function() {
		$("#form1").submit( function () {
			$("#result").val("");
			if($("#rolename").val() == ""){
				$("#rolename").focus();
				$("#result").text("标题不能为空！");
				return false;
			}
			
			return true;
		} );		
	});
</script>
</head>
<style type="text/css">/* CSS Document */   
#info th {  
 border-right: 1px solid #adceff;  
 border-bottom: 1px solid #adceff;  
 border-top: 1px solid #adceff;  
 letter-spacing: 2px;  
 text-transform: uppercase;  
 text-align: left;  
 padding: 6px 6px 6px 12px;  
 background: #f4f7fc;  
}  
#info td {  
 border-right: 1px solid #adceff;  
 border-bottom: 1px solid #adceff;  
 background: #fff;  
 font-size:11px;  
 padding: 6px 6px 6px 12px;  
 
}  
#info th.spec {  
 border-left: 1px solid #adceff;  
 border-top: 0;  
 background: #fff;   
}  
</style>  
<body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  	<TR height=28><TD background="<?php echo $_smarty_tpl->tpl_vars['web_host']->value;?>
/common/admin/images/title_bg1.jpg">当前位置:添加角色</TD></TR>
  	<TR><TD bgColor=#b1ceef height=1></TD></TR>
  	<TR height=20>
    	<TD background="<?php echo $_smarty_tpl->tpl_vars['web_host']->value;?>
/common/admin/images/shadow_bg.jpg"></TD>
	</TR>
</TABLE>

<div id="info" style=" margin-left:10px;">
<font id="result" color="#CC0000"><?php echo (($tmp = @$_smarty_tpl->tpl_vars['result']->value)===null||$tmp==='' ? '' : $tmp);?>
</font>
<form id="form1" target="_self" name="form1" method="post" action="">
<table id="mytable" cellspacing="0" >  
  <tr>  
    <th scope="col" colspan="2" style="border-left:1px solid #adceff;" >添加角色</th>  
  </tr>  
  <tr >  
    <td style="border-left:1px solid #adceff;" >角色名</td>
    <td> <input type="text" name="rolename" id="rolename" style="width:150px" value=""  /></td>
  </tr>  
  <tr>  
    <th scope="col"   style="border-left:1px solid #adceff;border-top:0px;" >可用权限</th>  
    <th scope="col"   style="border-top:0px;" >选择</th>
  </tr> 
  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['rs'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['name'] = 'rs';
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['resList']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['rs']['total']);
?>
  <tr >
    <td style="border-left:1px solid #adceff;" ><?php echo $_smarty_tpl->tpl_vars['resList']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rs']['index']]['ctrl_name'];?>
</td>
    <td><input name="res[]" type="checkbox" id="res" value="<?php echo $_smarty_tpl->tpl_vars['resList']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rs']['index']]['ctrl_id'];?>
" /></td>
  </tr>
  <?php endfor; endif; ?>
   <tr >
    <td style="border-left:1px solid #adceff;" >&nbsp;</td>
    <td>
    	<input type="submit" name="Submit" value="提交" />
	</td>
  </tr>
   
</table> 
</form>
</div>


</body>
</html>
<?php }} ?>